﻿using System;
using System.ComponentModel;
using DevExpress.Xpo;
using DevExpress.Data.Filtering;
using DevExpress.ExpressApp;
using DevExpress.Persistent.Base;
using DevExpress.Persistent.BaseImpl;
using DevExpress.Persistent.Validation;
namespace Top.Module.Domain
{
    [DefaultClassOptions]
    public class TopBrand : BaseObject
    {
        //begin
        public TopBrand(Session session) : base(session)
        {}
        public override void AfterConstruction(){base.AfterConstruction();}

        private string _Vid;
        [Size(SizeAttribute.Unlimited)]
        public string Vid
        {
            get
            {
                return _Vid;
            }
            set
            {
                SetPropertyValue("Vid", ref _Vid, value);
            }
        }
        private string _Name;
        [Size(SizeAttribute.Unlimited)]
        public string Name
        {
            get
            {
                return _Name;
            }
            set
            {
                SetPropertyValue("Name", ref _Name, value);
            }
        }
        private string _Pid;
        [Size(SizeAttribute.Unlimited)]
        public string Pid
        {
            get
            {
                return _Pid;
            }
            set
            {
                SetPropertyValue("Pid", ref _Pid, value);
            }
        }
        private string _PropName;
        [Size(SizeAttribute.Unlimited)]
        public string PropName
        {
            get
            {
                return _PropName;
            }
            set
            {
                SetPropertyValue("PropName", ref _PropName, value);
            }
        }
        private TopSellerAuthorize _SellerAuthorize;
        [Association("SellerAuthorizeBrands", typeof(TopSellerAuthorize))]
        public TopSellerAuthorize SellerAuthorize
        {
            get
            {
                return _SellerAuthorize;
            }
            set
            {
                SetPropertyValue("SellerAuthorize", ref _SellerAuthorize, value);
            }
        }
        //end

    }
}
